import request from './myRequest'

export function getCollectData(url) {
    const {_id}=wx.getStorageSync('userInfo')
    return request({
        url,
        data:{_id},
        header:{
            Authorization:wx.getStorageSync('token')
        }
    })
}
export function getAllCollect(){
    const {_id}=wx.getStorageSync('userInfo')
    return request({
        url:'/user/getcollect',
        data:{_id},
        header:{
            Authorization:wx.getStorageSync('token')
        }
    })
}
